﻿#pragma once
#include "pch.h"
#include "resource.h"
#include "CanopyClustering.h"


// CanopyClusteringDlg 对话框

class CanopyClusteringDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CanopyClusteringDlg)

public:
	CanopyClusteringDlg(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CanopyClusteringDlg();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_CANOPY };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持
	int r;
	int g;
	int b;
	
	DECLARE_MESSAGE_MAP();
public:
	BOOL IsColorChange;
	int iItemNum;
	CProgressCtrl* pProg;
	CanopyClustering * m_pCanopyCluster;
	afx_msg void OnBnClickedButtonRuncanopy();
	CImageList Canimagelist;
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedButtonClustering();
	CListCtrl m_ClusterList;
	afx_msg void OnCustomdrawListClass(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnBnClickedButtonClusterchange();
	CMFCButton m_ClusterColor;
	afx_msg void OnBnClickedButtonClustercolor();
	afx_msg void OnBnClickedButtonMergecluster();
	CProgressCtrl m_ProgressCtrl;
	virtual BOOL DestroyWindow();
	CProgressCtrl m_CanoProgressCtrl;
//	afx_msg void OnItemchangedListClass(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnItemchangedListClass(NMHDR *pNMHDR, LRESULT *pResult);
	CButton m_Check;
	BOOL m_checkbool;
};
